package com.swak.telnet.function;

import com.swak.telnet.cmd.Command;

@FunctionalInterface
public interface HandlerFunction {

	/**
	 * 获得返回值
	 * 
	 * @param request
	 * @return
	 */
	Object handle(Command request);

	/**
	 * 描述
	 * 
	 * @return
	 */
	default String description() {
		return getClass().getSimpleName();
	}
}